<?php
/**
 * Created by PhpStorm.
 * User: Kau
 * Date: 2017/12/11
 * Time: 20:07
 */

use yii\helpers\Html;

?>
<div class="post">
    <div class="title">
        <h2><a href="<?= $model->url; ?>"><?= Html::encode($model->title);?></a> </h2>

        <div class="author">
            <span class="glyphicon glyphicon-time" aria-hidden="true"></span><em><?= date('Y-m-d H:i:s', $model->create_time);?></em>
            <span class="glyphicon glyphicon-user" aria-hidden="true"></span><em><?= Html::encode($model->author->nickname); ?><br /><br /></em>
        </div>
    </div>
    <div class="content">
        <?= $model->beginning; ?>
    </div>

    <br />
    <div class="nav">
        <span class="glyphicon glyphicon-tag" aria-hidden="true"></span>
        <?= implode(', ', $model->tagLinks); ?>
        <br />
        <?= Html::a("评论 ({$model->commentCount})", $model->url.'#comments') ?> | 最后修改于 <?= date('Y-m-s H:i:s', $model->update_time); ?>
    </div>
</div>
